<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>美兰数据文化馆与图书馆</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/huazhi/lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/huazhi/css/public.css" media="all">
    <link rel="shortcut icon" href="<%=request.getContextPath()%>/huazhi/images/favicon.ico"/>
</head>
<style>
    .layui-form-label {
        width: 130px;
    }

    .layui-input-block {
        margin-left: 160px;
    }

</style>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 0px;">
            <form class="layui-form" lay-filter="component-form-element">
                <div class="layui-tab-content">
                    <div class="layui-row">
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <div class="layui-col-xs11">
                                    <label class="layui-form-label">序号</label>
                                    <div class="layui-input-block">
                                        <input type="text" min="0" id="serialnumer"
                                               autocomplete="off"
                                               class="layui-input"
                                               disabled name="serialnumer">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-xs11">
                                    <label class="layui-form-label">站内编号</label>
                                    <div class="layui-input-block">
                                        <div class="layui-input-inline" style="width: 38px;margin:0px;">
                                            <input type="text" autocomplete="off" class="layui-input"
                                                   disabled  value="HN"
                                                   style="background-color: #f5f7fa;" id="display">
                                        </div>
                                        <div class="layui-input-block" style="margin-left:38px;">
                                            <input type="text" autocomplete="off" class="layui-input"
                                                   style="border-left: none;"
                                                   id="stationnumber" disabled name="stationnumber">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-xs11">
                                    <label class="layui-form-label">资产编号</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="assetnumber"
                                               autocomplete="off"
                                               class="layui-input"
                                               disabled name="assetnumber">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-xs11">
                                    <label class="layui-form-label">仪器设备名称</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="equipmentname"
                                               autocomplete="off"
                                               class="layui-input"
                                               disabled name="equipmentname">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-xs11">
                                    <label class="layui-form-label">检定年份</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="verificationyear"
                                               autocomplete="off"
                                               class="layui-input" readonly=""
                                               disabled name="verificationyear">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-xs11">
                                    <label class="layui-form-label">检定证书</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="verificationcertificate"
                                               autocomplete="off"
                                               class="layui-input"
                                               name="verificationcertificate"  disabled>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-xs11">
                                    <label class="layui-form-label">结果确认</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="resultconfirmation"
                                               autocomplete="off"
                                               class="layui-input"
                                               name="resultconfirmation" disabled>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-xs11">
                                    <label class="layui-form-label">期间核查</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="intermediatechecks"
                                               autocomplete="off"
                                               class="layui-input"
                                               name="intermediatechecks" disabled>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-xs11">
                                    <label class="layui-form-label">使用记录本</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="usagerecordbook"
                                               autocomplete="off"
                                               class="layui-input"
                                               name="usagerecordbook" disabled>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="<%=request.getContextPath()%>/huazhi/lib/layui-v2.5.5/layui.all.js"></script>
<script>
    function child(tid) {
        layui.use(['form', 'laydate', 'layer'], function () {
            var $ = layui.$
                , form = layui.form
                , laydate = layui.laydate
                , layer = layui.layer;

            $.ajax({
                type: "post",
                url: "<%=request.getContextPath()%>/rest/equipment/getOverYearsByTid",
                data: "tid=" + tid,
                dataType: "json",
                async: false,
                success: function (data) {
                    form.val("component-form-element", data)
                }
            })

        });
    }
</script>
</body>
</html>